<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>使用 JavaScript 修改 element 元素内容</title>
</head>
<body>
<div id="change" class="change">
    <h1></h1>
</div>

<script>
    let element = document.querySelector("#change>h1");
    // console.log(element);
    element.innerText = "Hello, World!"

</script>
</body>
</html>